package com.legal.aid.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.legal.aid.common.annotation.Excel;
import com.legal.aid.common.core.domain.BaseEntity;

/**
 * 法律法规对象 z_law_regulation
 * 
 * @author ruoyi
 * @date 2025-05-27
 */
public class LawRegulation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 法规ID */
    private Long lawId;

    /** 法规标题 */
    @Excel(name = "法规标题")
    private String title;

    /** 法规内容 */
    @Excel(name = "法规内容")
    private String content;

    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishDate;

    /** 是否在首页展示（0-否 1-是） */
    private String isHome;

    public void setLawId(Long lawId) 
    {
        this.lawId = lawId;
    }

    public Long getLawId() 
    {
        return lawId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setPublishDate(Date publishDate) 
    {
        this.publishDate = publishDate;
    }

    public Date getPublishDate() 
    {
        return publishDate;
    }

    public void setIsHome(String isHome) 
    {
        this.isHome = isHome;
    }

    public String getIsHome() 
    {
        return isHome;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("lawId", getLawId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("publishDate", getPublishDate())
            .append("isHome", getIsHome())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
